<!--
 * @Author: your name
 * @Date: 2021-08-12 17:22:50
 * @LastEditTime: 2021-08-13 20:16:29
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \第一周\1-html\day02\1-a.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>超链接</title>
</head>
<body>
    <div id="top">Hello Top.</div>
    <!--url 统一资源定位符 链接到网络中的唯一资源-->
    <a href="http://www.baidu.com">百度一下</a> <!--当前页面跳转-->
    <a href="http://www.baidu.com" target="_blank">百度</a>  <!--新建页面跳转-->
    <!--相对路径-->
    <a href="./2-a.html">2-a</a> <!--当前页面跳转-->
    <a href="./2-a.html" target="_blank">2-a</a> <!--新建页面跳转-->
    <!--绝对路径-->
    <a href="/D:/基地/第一周/1-html/day02/2-a.html">2-a</a> <!--注意路径的书写-->
    <!---->
    <a href="mailto://1317788394@qq.com">发邮件给我</a>
    <!--锚点跳转-->
    <a href="#bottom">跳转到底部</a>
    <div style="height:30000px"></div>
    <div id="bottom">
        Hello Bottom.
        <a href="#top">回到顶部</a>
    </div>
</body>
</html>